#ifndef _TRANSFER_SERIAL_H_
#define _TRANSFER_SERIAL_H_

#include "transfer_base.h"
#include "SerialPort.h"
#include <list>
using namespace itas109;

class CTransferCom :public CTransferBase
{
public:
	CTransferCom();
	~CTransferCom();
	virtual int Open(const char* dev_name, int parm1, int parm2);
	virtual void Close();
	virtual int ReadData(unsigned char* data, int buf_sz);
	virtual int SendData(unsigned char* data, int buf_sz);
	virtual void SetDebugMod(int mode);
protected:
	int    m_baud_rate;
	int    m_net_type;
	CSerialPort m_com;
};
#endif
